package Accessors;

import java.util.Date;

import Callbacks.AbstractCallback;
import Models.PTReport;
import Presenter.PTReportPresenter;
import android.app.ProgressDialog;
import android.content.Context;

@SuppressWarnings("rawtypes")
public class PTReportAccessor extends AbstractAccessor<PTReport,PTReportPresenter,AbstractCallback> {
	private final String NAME = "ptreport";
	private final String DIALOG = "Package Type Report";
	
	private final static PTReportPresenter presenter = new PTReportPresenter();
	
	//Modal dialog variable.
	ProgressDialog modalDialog = null;
	
	public PTReportAccessor(AbstractCallback callback){
		super(presenter, callback);
	}
	
	//Public access functions.
	public void getPackageTypeReport(final Context context, final Date startDate
			, final Date stopDate, final int groupID){
		String dialog = "Loading " + DIALOG + " List...";
		String rfString = NAME + "/" + startDate.toString() + "/" + stopDate.toString() + "/" + Integer.toString(groupID);
		rfString = rfString.replaceAll(" ", "%20");
		super.getAllItems(context, dialog, rfString);
	}
}
